<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>首页</title>
    <div th:include="web/head"></div>
</head>
<body>

<div class="container">
    <div class="row">
        <div class="col-md-4"></div>
        <div class="col-md-4">
            <p style="margin: 20px"><a href="/">首页</a></p>
            <p style="color: red" th:if="${param.login}">已成功注销</p>
            <p style="color: red" th:if="${param.error}" th:text="${param.error}">用户名或者密码错误，请重试</p>

            <form class="form-signin" action="/login" method="post">
                <h2 class="form-signin-heading">登录</h2>
                <label for="username" class="sr-only">用户名</label>
                <input type="text" name="username" id="username" class="form-control" placeholder="用户名" required
                       autofocus><br>
                <label for="password" class="sr-only">密码</label>
                <input type="text" name="password" id="password" class="form-control" placeholder="密码" required><br>
                <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
                <input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
            </form>
        </div>
        <div class="col-md-4"></div>
    </div>
</div> <!-- /container -->

<div th:include="web/footer"></div>
</body>
</html>